package objects;

import java.awt.Graphics;

import javafx.scene.canvas.GraphicsContext;

import audioPlayer.AudioPlayer;

import drawables.Drawable;
import drawables.DrawableManager;
import drawables.Type;

public class TimeSelector extends Drawable {

    public TimeSelector() {
        DrawableManager.get().add(this);
    }
	
        
    
	@Override
	public void paint(Graphics g) {
		width=3000;
		height=30;
		x=0;
		y=0;
		g.fillRect(x , y , width, height);
		
		
	}

	@Override
	public void onLeftClick(int x , int y){		

		DrawableManager.get().getTrackLine().setXQuatized(x);
	}

	@Override
	public void paint(GraphicsContext g) {
		
		width=3000;
		height=30;
		x=0;
		y=0;
		g.fillRect(x , y , width, height);
	}

    @Override
    public Type getType() {
        return Type.TIMESELECTOR;
    }
}
